package cn.lisynet.user.service;

import cn.lisynet.user.service.impl.AddTaskServiceServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author lisy
 */
@FeignClient(value = "api-server",fallback = AddTaskServiceServiceImpl.class)
public interface AddTaskService {
    /**
     * 调用api-server的添加任务
     * @param taskId 任务id
     * @return
     */
    @PostMapping("/api/home")
    String addTask(String taskId) throws Exception;

    /**
     * 调用api-server的添加任务
     * @param content 内容
     * @return
     */
    @PostMapping("/api/addContent")
    String addContent(String content) throws Exception;
}
